package cn.tianyigps.obd;


import cn.tianyigps.obd.command.CommandConsumer;

/**
 * Created with IDEA
 * @description:  程序的入口，负责启动应用，开启通道
 * @author: cui.guibin
 * @create: 2019/3/8 11:00
 **/
public class Main {

	private static final int INET_PORT = 18877;
//	private static final int INET_PORT = 8080;


	public static void main(String[] args) {

		Thread thread1 = new Thread(() -> TCP.startTCP(INET_PORT));
		Thread thread2 = new Thread(() -> CommandConsumer.main(new String[]{}));
		thread1.start();
		thread2.start();
	}
}
